import { createRouter,createWebHashHistory } from "vue-router";

const routes = [
  {
    path:'/',
    name:'main',
    component:()=>import('@/views/Main.vue'),
    redirect:'/home',
    children:[
      {
        path:'/home',
        name:'home',
        component:()=>import('@/views/Home.vue'),
      },
      {
        path:'/user',
        name:'user',
        component:()=>import('@/views/User.vue'),
      }
    ],
  }
]

const router = createRouter({
  history:createWebHashHistory(),
  routes:routes,
})

export default router;